{% load paginator %}
{% load static %}
<div class="box_o " >
	<div class="rb_1">
	</div>
	<div class="rb_2">
	</div>
	<div class="rb_3">
	</div>
	<div class="rb">
		<h4> 付款  </h4>
		 {% include 'inc_func/filter.html' %}
		 <div class="box_i " >
			<div class="fright">
				{%if dojo%}				
				<div id="external" dojoType="dijit.Dialog" title="SmallERP"
				href="{{current_url}}add" style="overflow:auto; ">
				</div>				 
				<style type="text/css">		#external_underlay {
						background-color:grey;
					}
				</style>				
				<button dojoType="dijit.form.Button" onClick="dijit.byId('external').show();"
				type="button">
					+增加条目
				</button>
				 {%endif %}
				<a href="{{current_url}}add" class="p" >+增加条目</a>
			</div>
			 
			<img src="{% get_static_prefix %}stickies.ico"   width="16px" border="0">
			  &nbsp; 
			  
			<hr>
			<table class="zebra-table">
				<tr class="even">
					<th>编号</th>
					<th>标题</th>
					<th>申请人</th>
					<th>审批人</th>
					<th>申请时间</th>
					<th>订单总额</th>					
					<th>审批总额</th>
					<th>已付总额</th>
					<th>状态</th>
					<th>处理</th>
				</tr>
				{% for item in items %}
				<tr class="{% cycle 'odd' 'even' %}">
					<td>{{ item.id }}</td>
					<td><a href="{{current_url}}{{ pr.id }}">{{ item.item }}</a></td>
					<td>{{ item.ApplyMan }}</td>
					<td>{{ item.AuditMan }}</td>
					<td title="{{ item.CreateDateTime|date:"D Y-m-d H:i:s"  }}">{{ item.CreateDateTime|timesince }}前</td>
					<td>{{ item.OrderTotal }}</td>
					<td>{{ item.OrderPayTotalAudit }}</td>
					<td>{{ item.OrderPayTotal }}</td>
					<td>{{ item.get_Status_display }}</td>
					<td><a class="p" href="{{current_url}}{{ item.id }}">进入</a></td>
				</tr>
				{% endfor %}
				{% if show_pager %}
				<tr class='even'>
					<td class="hf" colspan="7" align="left"> 
					{% paginator queryparam 3 %}
					</td>
				</tr>
				{% endif %}
				<!-- tr>
					<td colspan="4" style="padding:10px 0 5px 0;">
					<a href="/forum/GoldenCoast/" class="g_disabled">默认排序</a>
					<a href="/forum/GoldenCoast/orderby-dateline/" class="g">发布时间</a>
					<a href="/forum/GoldenCoast/orderby-replies/" class="g">回复数</a>
					<a href="/forum/GoldenCoast/orderby-views/" class="g">浏览量</a>
					</td>
				</tr -->
			</table>
		</div>
		<H4><a class="fright" href="{{current_url}}" class="p">
					&nbsp;</a>&nbsp;&nbsp;</h4></H4>
	</div>
	<div class="rb_4">
	</div>
	<div class="rb_5">
	</div>
	<div class="rb_1">
	</div>
</div>